from netflix_request import *
import time

read_file = open("reduced_movie_list.txt","r")
write_file = open("tag_info.txt","w")
i = 0
for line in read_file:
	movie_id = line.split('\t')[1]
	movie_details = get_movie_details(auth_data, movie_id)
	write_file.write(line[:-1] + '\t' + ';'.join(movie_details) + '\n')
	i+=1
	print "%d of 1094" % i
	time.sleep(.5)
	
read_file.close()
write_file.close()
